package com.qf.service.impl;

import com.qf.entity.NewsComment;
import com.qf.mapper.NewsCommentMapper;
import com.qf.service.NewsCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author Lenovo
 * @version 1.0
 * @date 2021/10/2
 */
@Service
public class NewsCommentServiceImpl implements NewsCommentService {

    @Autowired
    private NewsCommentMapper newsCommentMapper;

    @Override
    @Transactional
    public void insertComment(NewsComment newsComment) {
        newsCommentMapper.insertSelective(newsComment);
    }
}
